FUNCTION DAC_2BytesToWord :Word
TITLE = 'DAC_2BytesToWord'
//
// This functionblock build a word of 2 single bytes
// 
// Versionshistory:
// 1.0 Ersterstellung E.Dittmann

VERSION : '1.0'
AUTHOR  : 'Lenze'
FAMILY  : 'DAC'
NAME : 'wOf2by'
KNOW_HOW_PROTECT


VAR_INPUT
    byInput1:                    BYTE;                              // Inputbyte 1
    byInput2:                    BYTE;                              // Inputbyte 2
END_VAR

VAR
END_VAR

BEGIN
    DAC_2BytesToWord := SHL(IN:=BYTE_TO_WORD(byInput2),N:=8) OR BYTE_TO_WORD(byInput1);
END_FUNCTION
